use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize)]
pub struct EmptyObject {}

#[derive(Debug, Deserialize, Serialize)]
pub struct PagingRequest<T> {
    pub page_size: u32,

    pub page: u32,

    pub conditions: Option<T>,
}

#[derive(Debug, Deserialize, Serialize)]
pub struct PagingResponse<T> {
    pub total: u32,

    pub data: T,
}
